package com.weike.foodsafe.controller;

import com.weike.common.utils.PageUtils;
import com.weike.common.utils.R;
import com.weike.foodsafe.entity.AddressEntity;
import com.weike.foodsafe.service.AddressService;
import com.weike.foodsafe.service.InventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


/**
 * 
 *
 * @author yuanding
 * @email 1472939313@qq.com
 * @date 2024-04-09 17:00:47
 */
@RestController
@RequestMapping("foodsafe/inventory")
public class InventoryController {

    @Autowired
    private InventoryService inventoryService;


    @GetMapping("list")
    private R list(@RequestParam Map<String , Object> params) {
        PageUtils pageUtils = inventoryService.inventoryList(params);

        return R.ok().put("data" , pageUtils);
    }



}
